# Contributor: Timo Teräs <timo.teras@iki.fi>
# Maintainer: Timo Teräs <timo.teras@iki.fi>
pkgname=libexttextcat
pkgver=3.4.6
pkgrel=0
pkgdesc="An N-Gram-Based Text Categorization library"
url="https://wiki.documentfoundation.org/Libexttextcat"
arch="all"
license="MPL-2.0"
checkdepends="bash"
subpackages="$pkgname-dev"
source="https://dev-www.libreoffice.org/src/libexttextcat/libexttextcat-$pkgver.tar.xz"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
5fe7b9b78d2d81b26ba07ce16c6dae490369a0a8b11561cc1260d893c86ef54cf76982751927eed71ac792cdbb47bac0f7acc71939a38c93310ee2bda174448b  libexttextcat-3.4.6.tar.xz
"
